cmake_minimum_required(VERSION 3.5.1)
project(post_plugin)

file (
    GLOB post_plugins
    ${PROJECT_SOURCE_DIR}/*
)

include_directories(/usr/local/lynxi/sdk/include/lyn_api/) 

foreach(plugin ${post_plugins})
    if(EXISTS ${plugin}/CMakeLists.txt)
        message("compile plugin " ${plugin})
        add_subdirectory(${plugin})
    endif()
endforeach()
